/*
package com.tansun.coll.cmc.web.controller;

import javax.validation.Valid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import com.tansun.coll.cmc.api.DemoService;
import com.tansun.coll.cmc.dto.DemoDTO;
import com.tansun.magicube.framework.base.api.BaseController;
import com.tansun.magicube.framework.base.api.Response;

@RestController
public class DemoController extends BaseController {

    @Autowired
    private DemoService demoService;

    */
/**
     * 新增
     *//*

    @PostMapping("/demo")
    public Response<?> addDemo(@RequestBody @Valid DemoDTO demoDTO) {
        return this.success(demoService.addDemo(demoDTO));
    }

    */
/**
     * 分页
     *//*

    @GetMapping("/demo")
    public Response<?> queryDemo(DemoDTO demoDTO, Pageable pageable) {
        return this.success(demoService.queryDemo(demoDTO, pageable));
    }

    */
/**
     * 根据ID查询
     *//*

    @GetMapping("/demo/{id}")
    public Response<?> queryDemo(@PathVariable String id) {
        return this.success(demoService.getDemoById(id));
    }

    */
/**
     * 更新
     *//*

    @PutMapping("/demo")
    public Response<?> updateDemo(@RequestBody @Valid DemoDTO demoDTO) {
        return this.success(demoService.updateDemo(demoDTO));
    }

    */
/**
     * 删除
     *//*

    @DeleteMapping("/demo/{id}")
    public Response<?> deleteDemo(@PathVariable String id) {
        return this.success(demoService.deleteDemo(id));
    }
}
*/
